package com.dangdang.service;

import java.util.List;

import com.dangdang.domain.ReceiveAddress;

/**
 * 收货人地址管理类接口
 * 
 * @author Wangpeihu
 * @team [Never give up]
 * @since JDK1.6(建议)
 * @date 2010-1-17
 */
public interface ReceiveAddressService {

	/**
	 * 增加一个收货人地址
	 * 
	 * @param product
	 */
	public void addReceiveAddress(ReceiveAddress receiveAddress);

	/**
	 * 删除一个收货人地址
	 * 
	 * @param product
	 */
	public void deleteReceiveAddress(ReceiveAddress receiveAddress);

	/**
	 * 修改一个收货人地址
	 * 
	 * @param product
	 */
	public void updateReceiveAddress(ReceiveAddress receiveAddress);

	/**
	 * 根据用户ID查找一个收货人地址
	 * 
	 * @return
	 */
	public ReceiveAddress findReceiveAddressByUserId(Integer userId);

	/**
	 * 查找所有的收货人地址
	 * 
	 * @return
	 */
	public List<ReceiveAddress> findAllReceiveAddress();
}